
//
//  FontAndColorMacros.h
//  CP-Fitness
//
//  Created by 张敬 on 2017/10/26.
//  Copyright © 2017年 Jing Zhang. All rights reserved.
//

#ifndef FontAndColorMacros_h
#define FontAndColorMacros_h

#pragma mark - 颜色
#define KClearColor         [UIColor clearColor]
#define KWhiteColor         [UIColor whiteColor]
#define KBlackColor         [UIColor blackColor]
#define KGrayColor          [UIColor grayColor]
#define KGray2Color         [UIColor lightGrayColor]
#define KBlueColor          [UIColor blueColor]
#define KRedColor           [UIColor redColor]
#define KYellowColor        [UIColor yellowColor]

#define RGB(r,g,b)          RGBA(r,g,b,1.0)
#define RGBA(r,g,b,a)       [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]
#define mRandomColor        RGB(arc4random()%255/255.0, arc4random()%255/255.0, arc4random()%255/255.0)  //随机色生成
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]


#define mMainColor UIColorFromRGB(0x53C203 ) //主题颜色
#define mBackgroudColor UIColorFromRGB(0xF7F7F7) //背景色
#define mMainTextColor UIColorFromRGB(0x262626) //文字主体颜色
//#define mIconLineColor UIColorFromRGB(0xF2F2F2) //线条
#define mIconLineColor RGB(230 ,230 ,230) //线条



#pragma mark - 字体
#define mBlodFont(n)[UIFont boldSystemFontOfSize:n]
#define mFontByNameAndSize(name, size)    [UIFont fontWithName:(name) size:(name)]
#define mFont(n) [UIFont systemFontOfSize:n] // 汉字方正准圆简体
#define mMediumFont(n) [UIFont systemFontOfSize:n weight:UIFontWeightMedium]
#define mSemiboldFont(n)  [UIFont systemFontOfSize:n weight:UIFontWeightSemibold]


#endif /* FontAndColorMacros_h */
